App({
    globalData: {
        openID: '',
        uid: '130',
        userInfo: {},
        longitude: 116.395645038,
        latitude: 41.9299857781,
        deviceSn: '',// 支付宝扫设备二维码进入 读取的设备SN
    },
    onLaunch(options) {
        //获取关联普通二维码的码值，放到全局变量qrCode中
        let that = this;
        if (options.query && options.query.qrCode) {
            let url = decodeURIComponent(options.query.qrCode); //扫的二维码链接
            let sn = url.split('/').pop();
            that.globalData.deviceSn = sn;
        }
    },
    onShow(options) {
        // 从后台被 scheme 重新打开
        // options.query == {number:1}
    },
});
